package com.lab.http

enum class LabHttpType(val type: String) {
    JSON("application/json; charset=utf-8");

    fun type():String{
        return this.type
    }
}
//Http 请求
interface LabHttpInterface{
    fun urlPath(value:String):LabHttpInterface

    fun urlPath(key:String,value:String):LabHttpInterface

    fun urlQuery(key:String,value: String):LabHttpInterface
}

interface LabHttpPostInterface : LabHttpInterface{
    fun form():LabHttpFrom
}

interface LabHttpGetInterface : LabHttpInterface{

}

abstract class LabHttpFrom{
    abstract fun param(name:String,value:String):LabHttpFrom

}

fun String.httpPost():LabHttpPostInterface = HttpPost()
